package com.qf.exeception;

import com.qf.enums.ResultEnum;
import lombok.Data;

@Data
public class EntryExeception extends  RuntimeException{
    private Integer code;
    private String msg;

    public EntryExeception(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public EntryExeception(ResultEnum resultEnum) {
        this.code = resultEnum.getCode();
        this.msg = resultEnum.getMsg();
    }

}
